package com.light.dp.flink.config.dto;

import com.light.dp.flink.enums.JdbcDriverEnum;
import lombok.Data;

import java.io.Serializable;

@Data
public class JDBCDatabaseConfig implements Serializable {
    private JdbcDriverEnum jdbcDriver;
    private String hostname;
    private int port;
    private String database;
    private String username;
    private String password;

    public JDBCDatabaseConfig() {
    }

    public JDBCDatabaseConfig(JdbcDriverEnum jdbcDriver, String hostname, int port, String database, String username, String password) {
        this.jdbcDriver = jdbcDriver;
        this.hostname = hostname;
        this.port = port;
        this.database = database;
        this.username = username;
        this.password = password;
    }
}
